home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / valid_filesystems / 05ext3 next >
Text File  |  2008-10-29  |  278b  |  26 lines

  1. #!/bin/sh
  2.  
  3. dev=$1
  4. id=$2
  5. property=$3
  6.  
  7. [ -f /var/lib/partman/ext3 ] || exit 0
  8.  
  9. case $property in
  10.     formatable)
  11.     echo ext3
  12.     ;;
  13.     existing)
  14.     [ -f $id/detected_filesystem ] || exit 0
  15.     fs=$(cat $id/detected_filesystem)
  16.  
  17.     case "$fs" in
  18.         ext3)
  19.         echo ext3
  20.         ;;
  21.     esac
  22.     ;;
  23. esac
  24.  
  25.  
  26.